package com.crm.domain.vo;

import com.crm.domain.entity.Contract;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.tomcat.jni.Address;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@ApiModel(value = "ContractVo", description = "合同视图对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContractVo {

    @ApiModelProperty(value = "主键", example = "1")
    private Integer id;

    @ApiModelProperty(value = "合同编号", example = "C0000001", required = true)
    private String contractNo;

    @ApiModelProperty(value = "合同文件名称", example = "contract_file_name.pdf", required = true)
    private String fileName;

    @ApiModelProperty(value = "姓名", example = "张三", required = true)
    private String name;

    @ApiModelProperty(value = "手机号", example = "13800138000")
    private String phone;

    @ApiModelProperty(value = "购买学科", example = "数学", required = true)
    private String subject;

    @ApiModelProperty(value = "购买课程", example = "高中数学", required = true)
    private String channel;

    @ApiModelProperty(value = "课程id", example = "1001")
    private Integer courseId;

    @ApiModelProperty(value = "活动id", example = "2001")
    private Integer activityId;

    @ApiModelProperty(value = "创建时间", example = "2023-01-01T12:00:00", required = true)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间", example = "2023-01-01T12:00:00", required = true)
    private LocalDateTime updateTime;

    @ApiModelProperty("用户地址")
    private List<Contract> contractList;
}